import request from '@/utils/request'

// 查询故障记录列表
export function listFault_record(query) {
  return request({
    url: '/fault_record/fault_record/list',
    method: 'get',
    params: query
  })
}

// 查询故障记录详细
export function getFault_record(faultId) {
  return request({
    url: '/fault_record/fault_record/' + faultId,
    method: 'get'
  })
}

// 新增故障记录
export function addFault_record(data) {
  return request({
    url: '/fault_record/fault_record',
    method: 'post',
    data: data
  })
}

// 修改故障记录
export function updateFault_record(data) {
  return request({
    url: '/fault_record/fault_record',
    method: 'put',
    data: data
  })
}

// 删除故障记录
export function delFault_record(faultId) {
  return request({
    url: '/fault_record/fault_record/' + faultId,
    method: 'delete'
  })
}
